//
//  STImageView.m
//  赛拓
//
//  Created by 王磊 on 8/15/16.
//  Copyright © 2016 立金所. All rights reserved.
//

#import "STImageView.h"
@interface STImageView()

@property (nonatomic ,strong) UIImageView *imageView;

@property (nonatomic ,strong) UILabel *label;
@end
@implementation STImageView
- (void)commitInit {
    [super commitInit];
    
    UIImageView *imageView = [[UIImageView alloc]init];
    
    self.imageView = imageView;
    
    [self addSubview:imageView];
    
    UILabel *label = [[UILabel alloc]init];
    
    self.label = label;
    
    [self addSubview:label];
}
- (void)setTitle:(NSString *)title {
    _title = title;
    
    self.label.text = title;
}
- (void)setUrlString:(NSString *)urlString {
    _urlString = urlString;
    
    [self.imageView set_BGBannerImageViewWithString:urlString];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
//    self.imageView.frame = CGRectMake(0, 0, 0, <#CGFloat height#>)
    
}
@end
